package com.yzly.demo.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TsetJob {

    //    @Scheduled(cron="0 0/1 * * * ?") //每分钟执行一次
    @Scheduled(fixedRate=30000)  //每隔多少毫秒
    public void updateDataByTime(){
        System.out.println("定时出来搞事情..");
    }
}
